package com.longtop.leaning.business;

import java.util.Vector;

import com.longtop.leaning.dao.FltRMSDao;
import com.longtop.leaning.dao.XMLUtil;
import com.longtop.leaning.data.AppData;

public class Download {

	public static boolean download() {
		Vector flightStrings = XMLUtil.xml2StringVector(XMLUtil.getContentFromURL(AppData.SERVER_URL+"flt_query.do"), AppData.FLIGHT_TAG);
		FltRMSDao.getInstance().addFlts(flightStrings);
		return true;
	}
}
